package cn.stylefeng.guns.modular.api;

import cn.stylefeng.guns.modular.business.service.CarouselService;
import cn.stylefeng.roses.core.base.controller.BaseController;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页轮播图
 *
 * Created by 59446 on 2019/9/10.
 */
@RestController
@RequestMapping("/gunsApi/carouse")
public class CarouselApi extends BaseController {

    @Autowired
    private CarouselService carouselService;

    @ApiOperation("轮播图")
    @GetMapping("/get")
    public ResponseData get() {
        return ResponseData.success(carouselService.get());
    }
}
